﻿using System;
using System.Collections.Generic;
using NHibernate.Criterion;

namespace OrderSystem.Core.Dao
{
    public interface IBaseDao<T>
    {
        T GetById(Int32 id);

        List<T> GetAll();
        List<T> GetAll(IList<ICriterion> criterias);

        void Save(T instance);
        void Delete(T instance);
    }
}
